# -*- coding:utf-8 -*-

import xadmin
from product.models import Product
from product.models import Chipset

   
class ProjectAdmin(object):
    list_display = ('name', 'category', 'display', 'guest', 'image', 'description', 'forum', 'code', 'doc', 'date')
    search_fields = ['name']
    list_filter = ['name']
    ordering = ('-display', '-guest', 'category')
              

class ChipAdmin(object):
    list_display = ('name', 'display', 'guest', 'category')
    search_fields = ['name']
    list_filter = ['category']
    ordering = ('-display', '-guest', 'category')
    
           
xadmin.site.register(Product, ProjectAdmin)
xadmin.site.register(Chipset, ChipAdmin)




